Optimized digital watermarking functions for streaming data

ABSTRACT

In one aspect of the invention, a digital watermark detector comprises a memory buffer for managing an incoming stream of data. The detector includes logic for transferring overlapping data blocks from the memory buffer to a frequency domain transform processor, such as an FFT processor. The frequency domain transform processor including logic to re-use frequency domain transform operation results for overlapping portions of the data blocks. In another aspect of the invention, a digital watermark detector comprises a memory buffer for a block of data, and pipelined watermark processor segments. The segments each perform different watermark detector operations in series. These segments concurrently operate on different data segments of the block of data in a processing pipeline. One embodiment employs pipelined processors for setting up data for subsequent detecting stages, such as pipelined data conversion, re-sampling, pre-filtering and frequency domain transforms. Alternative embodiments pipeline data transformations, correlation operations (e.g., matched filter operations) etc. Data flows through the processing pipeline until it reaches a critical point. At stages before the critical point, data may be dropped as not likely to include digital watermark data. This pruning of data helps reduce un-needed processing and/or false positives of watermark detection.

RELATED APPLICATION DATA

This application is a continuation in part of U.S. patent application Ser. No. 10/996,138, filed Nov. 19, 2004, which claims the benefit of U.S. Provisional Application 60/523,748, filed Nov. 19, 2003, which are hereby incorporated by reference.

TECHNICAL FIELD

The invention relates to digital watermarking, and in particular, optimized methods for detecting and extracting embedded digital data from a media data stream.

BACKGROUND AND SUMMARY

Digital watermarking is a process for modifying physical or electronic media to embed a hidden machine-readable code into the media. The media may be modified such that the embedded code is imperceptible or nearly imperceptible to the user, yet may be detected through an automated detection process. Most commonly, digital watermarking is applied to media signals such as images, audio signals, and video signals. However, it may also be applied to other types of media objects, including documents (e.g., through line, word or character shifting), software, multi-dimensional graphics models, and surface textures of objects.

Digital watermarking systems typically have two primary components: an encoder that embeds the watermark in a host media signal, and a decoder that detects and reads the embedded watermark from a signal suspected of containing a watermark (a suspect signal). The encoder embeds a watermark by subtly altering the host media signal. The reading component analyzes a suspect signal to detect whether a watermark is present. In applications where the watermark encodes information, the reader extracts this information from the detected watermark.

Several particular watermarking techniques have been developed. The reader is presumed to be familiar with the literature in this field. Particular techniques for embedding and detecting imperceptible watermarks in media signals are detailed in the assignee's U.S. Pat. Nos. 6,122,403 and 6,614,914, which are hereby incorporated by reference.

There are a number of uses of digital watermarking where it is beneficial to implement at least some portion of the embedding or reading process in hardware and firmware. Some examples include the use of an embedder or reader in cameras, cell phones, portable media players, office equipment (e.g., printers, scanners, fax machines, copiers, etc.). The complexity and memory requirements of digital watermark encoders/decoders present a number of design challenges in implementing them in hardware.

Presenting further design constraints, certain hardware applications of digital watermarking make only a small portion of a media signal available at one time for encoding/decoding operations. For example, the streaming flow of image data in office equipment hardware only makes small sections of an image available at a time (e.g., a group of scan lines of an image, sometimes referred to as a band).

This disclosure describes methods and associated hardware for implementing digital watermarking functions. One method performs an optimized FFT for watermark detection by re-using the contribution of a sub-block to several larger block FFTs of which it is a part. In one aspect of the invention, a digital watermark detector comprises a memory buffer for managing an incoming stream of data. The detector includes logic for transferring overlapping data blocks from the memory buffer to a frequency domain transform processor, such as an FFT processor. The frequency domain transform processor including logic to re-use frequency domain transform operation results for overlapping portions of the data blocks.

Another method exploits the greater data available in one dimension to perform a block FFT that is larger in the dimension where more data is available.

Another method performs filtering in the square of the Fourier magnitude domain to avoid computational complexity.

Another method uses registration and message decoding estimates for some blocks in a signal to limit digital watermark processing in other blocks. These estimates can limit the range of geometric registration processing, avoid redundant computation, and/or provide a more accurate detection by accumulating decoded information across several blocks.

In another aspect of the invention, a digital watermark detector comprises a memory buffer for a block of data, and pipelined watermark processor segments. The segments each perform different watermark detector operations in series. These segments concurrently operate on different data segments of the block of data in a processing pipeline. One embodiment employs pipelined processors for setting up data for subsequent detecting stages, such as pipelined color conversion, re-sampling, pre-filtering and frequency domain transforms. Alternative embodiments pipeline data transformations, correlation operations (e.g., matched filter operations) etc. Data flows through the processing pipeline until it reaches a critical point. At stages before the critical point, data may be dropped as not likely to include digital watermark data. This pruning of data helps reduce un-needed processing and/or false positives of watermark detection.

Further features will become apparent with reference to the following detailed description and accompanying drawings.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a block diagram illustrating an input stage of a digital watermark detector that operates on streaming image data and optimizes frequency transformation calculations.

FIG. 2 is a block diagram illustrating a geometric registration stage of a digital watermark detector.

FIG. 3 is a block diagram illustrating a registration refinement stage of a digital watermark detector.

FIG. 4 is a block diagram illustrating a digital message extractor of a digital watermark detector.

FIG. 5 is a block diagram illustrating a pipelined watermark processor.

DETAILED DESCRIPTION

Introduction

In this document, we illustrate methods and related hardware for digital watermarking functions. These methods are particularly discussed in the context of block based watermarking of images for hardware implementations. However, some of these methods can be extended to different data types and processing environments.

In the block based digital watermarking methods detailed below, instances of a digital watermark signal are redundantly embedded in contiguous blocks of a host image. Detailed examples of these methods are described in more detail in U.S. Pat. Nos. 6,122,403 and 6,614,914. Specific application of digital watermarking to streaming data is described in Ser. No. 09/659,125, which is hereby incorporated by reference.

The block based approach provides a number of potential advantages as well as challenges in the design of a digital watermark detector. Some advantages are that the block based structure and repetition of the watermark can be used to assist in detection by aggregating detection results across blocks and provide information used in calculating the geometric orientation of the watermark. Also, block based watermark can enable, in certain circumstances, complete detection of a digital watermark, including a multi-symbol variable message carried in the watermark, from a small clip of the watermarked image. Some challenges associated with two dimensional watermark blocks is that some number of pixels need to be at least temporarily stored and analyzed to extract the digital watermark.

Another challenge in block based digital watermarking systems is that the digital watermark is typically not equally detectable in all areas of the image. In some areas, the watermark strength may be stronger, and thus, more detectable, due to the host image characteristics and/or lack of distortion that degrades the watermark. This presents a challenge because processing resources and memory might be wasted attempting to extract a watermark from an area where the signal is weak or degraded.

Streaming Image Data in Bands

We now describe watermark detector functions that operate on a streaming image source. A typical image source in office equipment is a stream of image bands. Each band typically comprises two or more scan lines (horizontal rows) of pixels across a document page. The spatial resolution (e.g., number of data samples or pixels per inch) can vary, but a representative resolution is 300 Dots Per Inch (DPI). Actual spatial resolution of the pixels may be higher or lower.

Since the data is in the form of bands across a page, it is possible to exploit the greater amount of data, and perhaps corresponding greater resolution, in the horizontal dimension. Various ways of exploiting this attribute of streaming image bands are described further below.

Another attribute of the bands that constrains some implementations is that they may not be able to be captured and saved for an entire image (such as a document image being printed or scanned). One reason for this limitation relates to the memory required to buffer an entire page, and circuitry required to process the entire page is not available in lower cost hardware implementations. Further, the time required to read and process data across the page randomly and repeatedly is not available.

FIG. 1 shows an example of a cascade of image bands 100 streaming into an initial stage of a digital watermark detector. These bands represent portions of an image being sent to a printer for printing, or alternatively, being scanned from a document being scanned. As these bands arrive, they are buffered in buffers 102, 104. This particular diagram shows a dual buffering approach where one buffer fills, while the watermark detector operates on the other. The watermark detector switches back and forth between the buffers as the data becomes available.

The watermark detector operates on blocks of image pixels within one band. These operations may be performed in parallel or in series. In this particular case, the detector serially operates on blocks of pixels across a band. A shifter 106 shifts across blocks in the band buffer, selecting blocks in series for further processing.

There are some pre-processor 108 operations, such as sampling and color conversion that may be applied at this stage, if not already handled previously. For example, color image data can be converted into luminance or some other color channel for watermark detection.

Next, the watermark detector performs a series of calculations to approximate a spatial to frequency domain transformation of the image data. In this particular case, the transform is a form of block Fast Fourier Transform 110. Generally, this type of frequency transformation is used extensively in a wide variety of watermark detection algorithms to, for example, transform the media data into a form where the digital watermark is detected and extracted, and to implement common detector convolution operations, such as matched filtering, cross correlation, autocorrelation, etc. As such, the optimizations described here are applicable to a variety of digital watermark detection algorithms and embedded signaling protocols.

One particular optimization, as highlighted above, is to take advantage of the level of detail available in the horizontal direction by performing the frequency domain transformation at a higher level of detail in the horizontal direction than the vertical. In this particular implementation, the detector seeks to detect discrete watermark elements in the frequency domain at particular locations. By using more spatial detail in the horizontal direction, the detector can compensate for less detail in the vertical direction to increase the accuracy of detecting watermark signal peaks or other watermark signal attributes at expected locations with in the transformed data.

The higher level of detail can be achieved by using an FFT with a larger dimension in the horizontal vs. vertical direction on image data at a fixed spatial resolution, or by using image data that is at a higher resolution in the horizontal vs. vertical direction. In the first case, the FFT module in the detector is longer in the horizontal vs. vertical direction (e.g., has more points in the horizontal than vertical dimension, such as a 256 by 64 point FFT). This type of FFT processor yields more samples in the frequency domain along the horizontal dimension, enabling better signal separation. This greater resolution in the frequency domain enables the detector to make a more accurate detection, and/or compensate for the potential loss of accuracy in the vertical direction due to the lack of data and corresponding smaller point FFT in the vertical direction.

In the second case, the higher resolution spatial domain data enables more high frequencies to be represented in the frequency domain. This is helpful if the digital watermark is at least partially represented at higher frequencies. If it is not, computational efficiency can be gained by high pass filtering and downsampling to a lower resolution, enabling a smaller and more computationally efficient FFT.

These two techniques can be used together to obtain a frequency representation and corresponding method of processing that provides improved signal detection accuracy in the frequency domain with the lowest computational complexity.

Another optimization is expanded on the right part of FIG. 1. Computationally, the block FFT can be expensive if performed over and over across the image. One way to mitigate this expense is to re-use the data computed for overlapping image blocks. Digital watermark detection operations utilize frequency domain samples computed for overlapping blocks resulting from repeatedly applying a block FFT in sliding window across the image. This process can lead to inefficiencies if implemented in a manner that does not re-use FFT computations previously computed for an overlapping block.

The right hand side of FIG. 1 shows a method of re-using FFT components across the image. In a sliding window approach, the window size corresponds to the size of the FFT, which in turn corresponds to a block of image pixels being transformed into the Fourier domain for a particular step. This window slides across the band in step sizes that are less than the block size, resulting in overlap between adjacent blocks in the sliding window. The overlap can be in both the horizontal and vertical direction, and is typically a factor of the FFT size (e.g., a horizontal step size of 64 for an FFT of length 256 horizontally). The FFT processor defines the size of the sub-block in terms of the size of the overlap (e.g., a 64 sample step size for an overlap between adjacent steps of 64).

As depicted in the diagram, the FFT process need only compute once the contribution of a sub-block to the frequency transform of several blocks in which it is a part. This can be achieved by computing all of the FFT contributions for sub-blocks in parallel, in series or some other arrangement. The point is that the FFT processor need only compute the FFT contribution of a sub-block once, and re-use this contribution for all the blocks in which it falls as the sliding window moves across the band.

For example, as the FFT processor slides across the band for each step, the FFT processor collects the FFT components from sub-blocks in the block that corresponds to the current window. These contributions add together to produce the frequency domain for the current block. To get the next block's frequency transform, the FFT processor subtracts the contributions from sub-blocks that are in a previous block but not in the current block, applies a phase shift to the remaining complex components which accounts for the translation of moving from the previous to the current block, and adds contributions from sub-blocks that are in the current block but not the previous. The FFT processor continues this process for each block across the band.

This approach may use a little more memory, but reduces the number of mathematical operations. It is roughly equivalent to computing the FFTs for all blocks to which a sub-block belongs simultaneously. The FFT processor calculates the sub-block's contribution once, and then applies the appropriate phase shifts and adds the results to the FFT space for each block.

The re-use of FFT calculations may be limited in implementations where a window filtering pre-processes the data before the FFT. Windowing filtering is performed to suppress edge effects at the edges of the blocks of data input to the FFT. One such window filter is a raised cosine filter.

Another optimization that can reduce computational complexity is to adapt the detector calculations such that they operate on the square of the Fourier magnitude data. This avoids the need for more costly square root and divide operations. In this case, the square of the Fourier magnitude is output from the FFT processor.

At this stage, the digital watermark detectors can be specialized further to perform additional detection and extraction operations on the transformed data and the original spatial image data that is buffered for the current band (or set of contiguous bands).

In some cases, the detector needs to compensate for rotation, spatial scaling and translation shifts applied to the watermarked image after the watermark has been embedded. In this case, a geometric registration module computes and compensates for this geometric distortion to ensure accurate watermark detection and to facilitate accurate extraction of a variable multi-bit message carried in the digital watermark.

FIG. 2 is a block diagram illustrating a geometric registration stage of a digital watermark detector. The details of geometric registration are detailed in the patents incorporated above and in the digital watermarking literature. Thus, we begin the discussion assuming the reader has a familiarity with those techniques. There are two techniques that are generally related and relevant to this discussion. One technique relies on the patterning of watermark blocks in the embedding process so as to create transform domain peaks. Affine geometric transforms have a known effect on this pattern of peaks, which can be computed from detected peaks in the detector knowing the original pattern. Another related technique uses a fixed pattern of peaks in a frequency domain from which the affine transform is computed knowing the original pattern. Both of these techniques rely on the transform domain data computed in the previous detector stage. Both of these techniques can be used to approximate the rotation and scale of the image by correlating the detected pattern of peaks with a reference pattern. And finally, both of these techniques can be facilitated by performing the correlation in a log polar remapping of the data to extract rotation and scale parameters. However, to optimize detection, one technique can be used initially to get coarse approximates of the rotation/scale, and then the other can be used to get more detailed or accurate rotation/scale information.

FIG. 2 shows an example of one approach to geometric registration. First, the Fourier magnitude data (possible the square of the magnitude per above) is filtered to boost the watermark signal energy relative to the host image. For example, the detector filters the image data in a manner that replaces it with values representing a ratio of the Fourier magnitude values and their neighbors (200). Next, the detector analyzes the data to detect the repetition of the watermark blocks across the band, and thereby calculate a rough estimate of watermark rotation and scale (202). The pattern of the digital watermark blocks provides a discernable pattern in the transform domain from which an estimate of the digital watermark's rotation and scale can be derived. This estimate can then be used to limit subsequent processing by limiting the range or potential candidates over which the subsequent stages operate to detect the digital watermark and refine the rotation and scale estimates.

The detector then performs a selective impulse match filtering at specific portions of the Fourier magnitude data where energy peaks of the digital watermark are expected to be located (204). The processing is limited based on the initial estimates of rotation and based on the expected locations of the energy peaks of the digital watermark, which are fixed or otherwise known to the detector. This later calculation produces an estimate of the digital watermark's rotation and scale in the current image band. The detector then proceeds to refine the rotation/scale estimate further (206), optionally as described below.

FIG. 3 is a block diagram illustrating a registration refinement stage of a digital watermark detector. At this stage, there are potentially several rotation and scale estimates associated with the detected digital watermark elements. To refine this estimate, one approach is to search in an N by N grid in the correlation space in a log polar coordinate system around each element to find the maximum correlation, and thus, the refmed rotation and scale in the log polar coordinate system at which the digital watermark is located. However, this approach is computationally expensive because a number of searches are performed separately, possibly on each watermark element as well as each potential rotation and scale estimate (of which there may be several). An alternative approach is to combine the correlation space of all of the elements together to form a composite representation of correlation space of the entire array of watermark elements, and then evaluate this composite representation to refine the rotation and scale data.

One way to refine the rotation and scale data in this composite correlation space is to search for the maximum correlation peak iteratively. Each time selecting a possible rotation and scale refinement, interpolating the data, and testing whether a digital watermark has been found by one or more watermark detection criteria (e.g., correlation threshold, successful message extraction, etc.). Another way is to evaluate a maximize function to identify the point of maximum detection, which corresponds to the rotation and scale refinement that gives the highest detection result by one or more detection criteria (e.g., correlation, message accuracy, etc.).

FIG. 4 is a block diagram illustrating a digital message extractor of a digital watermark detector. The message extractor operates on blocks of image data that have been adjusted to compensate for geometric distortion (400, 402). The message reader extracts message estimates (e.g., by spread spectrum demodulation), which provides soft message elements. An error correction decoder then takes the soft message elements and performs error correction. The reader evaluates the resulting variable message data for accuracy by checking fixed message elements and/or error detection information. Further information on the details of decoding is provided in the patents incorporated by reference above, namely U.S. Pat. No. 6,614,914.

The results of the decoding for the block are re-used for other blocks. One form of re-use is using the rotation, scale and translation information for the current block for subsequent blocks to limit geometric registration processing for those subsequent blocks in cases where at least a partially successful message extraction occurs. Another form of re-use is accumulating the soft message elements across blocks, optionally weighting them based on detection criteria. The accumulated data can then be used in the error correction decoding stage to increase the chances of accurate message recovery.

FIG. 5 is a diagram illustrating a pipelined watermark processor. This pipelining approach is particularly well suited for implementation in digital hardware logic circuitry. In the context of a digital watermark detector, pipelining refers to implementing the detector in a series of pipelined segments that operate concurrently on segments of a block of data that flows in a stream to the detector. This pipelining works well in hardware and in contexts where the detector operates in streaming mode in which: 1. a block of data arrives in a continuous stream, 2. the block is available for a fixed period of time, and 3, the block is no longer available after the fixed period of time (e.g., is deleted or overwritten by the next block of data to arrive from the stream). One example, used to illustrate the approach, is a stream of image rows or bands as described previously. Other examples include streams of data blocks from image sensors or audio transducers (e.g., microphones).

In general, the pipeline model subdivides the watermark processor into processor segments as shown in the left of FIG. 5. A continuous stream of data flows into the processor segment. Each segment receives a segment of the data, processes it, and passes it to the next segment in a serial fashion without waiting for the entire block of data to arrive.

In a specific. example shown in FIG. 5, pipeline segments are illustrated as functional blocks 500-504. The particular function of these detector segments is an example, and similar pipelining may be implemented for other detector stages described in this document. In this example, the detector operates on data segments, each segment comprising n contiguous pixels from a row of image pixels. As shown on the right side of FIG. 5, the data segments of n pixels flow through the pipeline in serial order from one processor segment to the next. Data segments within a row are processed concurrently within the pipeline as the segments flow through the pipeline stages.

Pre-filter 500 filters part of a row of pixels to prepare it for further detection. This filter can, itself, be pipelined into segments, such as a color space conversion segment, re-sample segment, spread energy filter segment, and prediction filter segment. Color space converter converts the data to a channel in which the watermark is embedded. Re-sampler transforms the data to a desired resolution. Spread energy filter serves as a predictor of the likelihood that the block includes energy characteristics consistent with a digital watermark (e.g., whether it likely includes a detectable/recoverable watermark). Finally, prediction filter provides an estimate or predictor of the watermark signal, or de-correlates the watermark from the host signal in which it is embedded. One such technique is to output for each pixel a function of a comparison of its value with neighboring values. This function may be implemented as a look up table.

In one embodiment, this prediction filter is a 2D filter operating on contiguous rows of pixels (e.g., a 3 by 3 pixel block, where each pixel is analyzed relative to its horizontal, vertical and diagonal neighbors). To accommodate this 2D filter operation, contiguous rows are accumulated and then the filter is applied across the rows. Pipeline stages are either designed to operate on groups of contiguous rows, or the prediction filter operates on a group of rows at a time, with subsequent stages pipelined for operation across individual rows.

Window filter 502 is used to deal with edge effects as a pre-process to an FFT segment 504. One example is a raised cosine filter that falls off at the edges of the data segment. It may be removed in cases where it does not materially enhance detection.

Row FFT 504 performs a 1-D FFT for the current data segment of n pixels. Since a 2D FFT is ultimately desired in this detector, the pipeline ends at this point to allow the results of the 1-D FFT for multiple rows to be accumulated in preparation for performing a column FFTs needed to complete the 2D FFT operation. Magnitude block 506 computes the Fourier magnitude, which is used for further watermark detector operations. While the spread energy filter in block 500 identifies data that is not likely to include a watermark, the pipeline processor continues to process each segment in the stream regardless of the outcome of this filter. At the end of the pipeline, the detector has a critical point where data that does not meet criteria for including a recoverable watermark is dropped from further processing (it can be dropped sooner if desired). This approach reduces further processing on such data and reduces false positives of watermark detection.

In this example, rows of pixels arrive in a streaming mode are available for watermark processing for a fixed period of time (e.g., before the subsequent bands in a stream overwrite the band buffer). Therefore, it is advantageous to accelerate watermark processing on them with pipelining. Other parts of the detector can be pipelined in a similar fashion, such as stages that perform similar transforms on data segments, such as mapping of the data to different coordinate spaces, correlation operations (e.g., matched filtering), etc.

Concluding Remarks

Having described and illustrated the principles of the technology with reference to specific implementations, it will be recognized that the technology can be implemented in many other, different, forms. To provide a comprehensive disclosure without unduly lengthening the specification, applicants incorporate by reference the patents and patent applications referenced above.

The methods, processes, and systems described above may be implemented in hardware, software or a combination of hardware and software. For example, the auxiliary data encoding processes may be implemented in a programmable computer or a special purpose digital circuit. Similarly, auxiliary data decoding may be implemented in software, firmware, hardware, or combinations of software, firmware and hardware. The methods and processes described above may be implemented in programs executed from a system's memory (a computer readable medium, such as an electronic, optical or magnetic storage device).

The particular combinations of elements and features in the above-detailed embodiments are exemplary only; the interchanging and substitution of these teachings with other teachings in this and the incorporated-by-reference patents/applications are also contemplated. 

1. A digital watermark detector comprising: a memory buffer for managing an incoming stream of data; logic for transferring overlapping data blocks from the memory buffer to a frequency domain transform processor, the frequency domain transform processor including logic to re-use frequency domain transform operation results for overlapping portions of the data blocks.
 2. The digital watermark detector of claims 1 wherein the frequency domain transform processor comprises an FFT processor.
 3. The digital watermark detector of claim 1 wherein the memory buffer buffers bands of image data, and overlapping blocks comprise overlapping blocks along horizontal rows of the bands.
 4. The digital watermark detector of claim 1 including pipelined detector stages operable to perform pipelined processing of segments of data from the incoming stream of data.
 5. The digital watermark detector of claim 1 wherein the stream comprises rows of image pixels and the frequency domain processor is longer in the direction of the rows to exploit greater resolution of image data along the rows.
 6. A digital watermark detector comprising: a memory buffer for a block of data; and pipelined watermark processor segments, the segments each performing different watermark detector operations in series; the segments concurrently operating on different data segments of the block of data in a processing pipeline.
 7. The digital watermark detector of claim 6 wherein the pipelined watermark processor segments perform a frequency domain transform on the block of data.
 8. The digital watermark detector of claim 7 wherein the frequency domain transform comprises filtering and frequency domain transform stages.
 9. The digital watermark detector of claim 6 wherein the pipelined watermark processor elements perform a 1-dimensional frequency domain transform across a row of pixel data, and the detector accumulates results of the 1-dimensional transform for multiple rows before performing another frequency domain transform for columns of data in the multiple rows. 